import java.util.Scanner;

/**
 * @author yuanbinbing
 * 比较两个数的最大值
 */
public class Task15_01 {
    public static void main(String[] args) {
        System.out.println("请输入两个整数：");
        Scanner sc = new Scanner(System.in);
        int num1 = sc.nextInt();
        int num2 = sc.nextInt();

        int result= max (num1,num2);
        System.out.println("最大值max为："+result);
    }

    public static int  max ( int num1,int num2) {
        if(num1>=num2){
            return  num1;
        }else{
            return  num2;
        }

    }
}
